from django.db import models

# Create your models here.
class User(models.Model):
    stu_id = models.CharField(max_length=8, verbose_name='学号')
    nick_name = models.CharField(max_length=20, verbose_name='昵称')
    email = models.EmailField(null=True, verbose_name='邮箱')
    password = models.CharField(max_length=11, verbose_name='密码')
    address = models.CharField(max_length=20, verbose_name='地址')
    user_type = models.IntegerField(default=0)


    class Meta:
        pass

    def __str__(self):
        return self.stu_id
